package com.hellowx.feignclient;

/**
 * Created by IntelliJ IDEA.
 *
 * @author MagicMushroom
 * @date 2021/7/13
 */

import com.hellowx.feignclient.impl.HystrixFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "HYSTRIX",fallback = HystrixFallback.class)

public interface HystrixClient {

    @GetMapping("/demo/{id}")
    String demo(@PathVariable("id") Integer id);
}
